package com.sc.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.mapper.mapperauto.AppointmentECMapper;
import com.sc.mapper.mapperhand.HandappointmentECMapper;
import com.sc.pojo.AppointmentEC;
import com.sc.service.AppointmentECService;

/**
 * Description: <br/>
 * Date: 2018年7月3日 下午8:09:42 <br/>
 * 
 * @author liutao
 * @version
 * @see
 */
@Service
public class AppointmentECServiceImpl implements AppointmentECService {
    @Autowired
    private HandappointmentECMapper handappointmentECMapper;

    @Autowired
    AppointmentECMapper ac;
        
    
    @Override
    public int insert(AppointmentEC ap) {
        
        //  Auto-generated method stub
        return ac.insert(ap);
    }
    
    @Override
    public List<AppointmentEC> selectAppointmentECByDay() {

        // Auto-generated method stub
        return handappointmentECMapper.selectAppointmentECByDay();
    }

    @Override
    public List<AppointmentEC> selectAppointmentECByWeek() {

        // Auto-generated method stub
        return handappointmentECMapper.selectAppointmentECByWeek();
    }

    @Override
    public List<AppointmentEC> selectAppointmentECByMonth() {

        // Auto-generated method stub
        return handappointmentECMapper.selectAppointmentECByMonth();
    }

    @Override
    public List<AppointmentEC> selectAppointmentECByUpMonth() {

        // Auto-generated method stub
        return handappointmentECMapper.selectAppointmentECByUpMonth();
    }

    @Override
    public List<AppointmentEC> selectAppointmentECByQuarter() {

        // Auto-generated method stub
        return handappointmentECMapper.selectAppointmentECByQuarter();
    }

    @Override
    public List<AppointmentEC> selectAppointmentECByUpQuarter() {

        // Auto-generated method stub
        return handappointmentECMapper.selectAppointmentECByUpQuarter();
    }

    @Override
    public List<AppointmentEC> selectAppointmentECByYear() {

        // Auto-generated method stub
        return handappointmentECMapper.selectAppointmentECByYear();
    }

    @Override
    public Integer selectCidByName(String name) {
        
        //  Auto-generated method stub
        return handappointmentECMapper.selectCidByName(name);
    }
    

    @Override
    public int updateAppoinmentAndDate(Map<String, Object> map) {
        
        //  Auto-generated method stub
        return handappointmentECMapper.updateAppoinmentAndDate(map);
    }
   

}

